package myProject.vistas.secciones {
	
	
	import com.googlecode.astoolkit.modules.content.section.AbstractSection;
	import com.googlecode.astoolkit.modules.content.section.ISection;
	
	import flash.display.Sprite;
	
	import myProject.ContactSWC;

	public class Contact extends AbstractSection implements ISection {
		
		private var _holder:Sprite;
		private var _content:ContactSWC;
		
		public function Contact(){
			super();
			_holder = new Sprite();
			addChild(_holder);
		}

		override public function transitionIn():void {
			_content = new ContactSWC();
			_holder.addChild(_content);
			
			transitionInComplete();
		}

		override public function transitionOut():void {
			//trace("transitionOut de :" + this + ", _content-->" + _content + "\r______________________");
			_holder.removeChild(_content);
			_content = null;
			
			transitionOutComplete();
		}

	}
}